<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>尺寸溢出问题</title>
		<style>
			/*  */
			div{
				width: 500px;
				height: 100px;
				background-color: rgba(161, 164, 219, 0.2);
				/* 子元素宽度大于父元素，子元素必须在父元素内
				溢出部分方案: overflow溢出属性: 属性值
				                   scroll 滚动
				        overflow-x和overflow-y
				*/
				overflow: scroll;
				overflow: visible;
				overflow: hidden;/* 常用 */
				overflow: auto;
				/* 需求：左右滚动，不需要上下 */
				overflow-y: hidden;
			}
			p{
				width: 1000px;
			}
		</style>
	</head>
	<body>
		<!-- 理解：水杯 -->
		<div>
			<!-- 理解：水 -->
			<p>
				<img src="img/溢出用图/溢出用图/p_small_001.jpg" alt="1">
				<img src="img/溢出用图/溢出用图/p_small_002.jpg" alt="2">
				<img src="img/溢出用图/溢出用图/p_small_003.jpg" alt="3">
				<img src="img/溢出用图/溢出用图/p_small_004.jpg" alt="4">
				<img src="img/溢出用图/溢出用图/p_small_005.jpg" alt="5">
				<img src="img/溢出用图/溢出用图/p_small_006.jpg" alt="6">
				<img src="img/溢出用图/溢出用图/p_small_007.jpg" alt="7">
			</p>
		</div>
	</body>
</html>